package ru.ncedu.java.vlku.hrs.bll;

import ru.ncedu.java.vlku.hrs.bll.impl.HRSManagerImpl;

public class HRSManagerFactory {
    public static HRSManagerFactory instance = null;
    public static HRSManager hrsManager = null;

    private HRSManagerFactory() {}
    public static synchronized HRSManagerFactory getInstance() {
        if (instance == null)
            instance = new HRSManagerFactory();
        return instance;
    }
    public synchronized HRSManager getHRSManager() {
        if (hrsManager == null)
            hrsManager = new HRSManagerImpl();
        return hrsManager;
    }
}
